package one.Studenet;

import  java.util.ArrayList;

public class TestDemo {
    public static void main(String[] args) {
        ArrayList<Student> List = new ArrayList<>();
        Student s1 = new Student("张三", 18, "男");
        Student s2 = new Student("李四", 19, "女");
        Student s3 = new Student("王五", 20, "男");
        List.add(s1);
        List.add(s2);
        List.add(s3);
        int max = StudentUtility.getMaxAge(List);
        System.out.println(max);
    }
}
